home *** CD-ROM | disk | FTP | other *** search
-
-
-
- iiiillllWWWWaaaattttcccchhhheeeeddddOOOObbbbjjjjeeeecccctttt((((3333)))) IIIImmmmaaaaggggeeeeVVVViiiissssiiiioooonnnn LLLLiiiibbbbrrrraaaarrrryyyy CCCC++++++++ RRRReeeeffffeeeerrrreeeennnncccceeee MMMMaaaannnnuuuuaaaallll
-
-
-
- NNNNAAAAMMMMEEEE
- iiiillllWWWWaaaattttcccchhhheeeeddddOOOObbbbjjjjeeeecccctttt - lightweight alteration notifier
-
- IIIINNNNHHHHEEEERRRRIIIITTTTSSSS FFFFRRRROOOOMMMM
- This is a base class
-
- HHHHEEEEAAAADDDDEEEERRRR FFFFIIIILLLLEEEE
- #include <il/ilWatchedObject.h>
-
- CCCCLLLLAAAASSSSSSSS DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- This class abstracts the general concept of watching for alterations on
- slave objects. Classes that wish to allow other objects to be notified
- of changes to instances of itself can be derived from ilWatchedObject.
- Other classes can then use the aaaaddddddddWWWWaaaattttcccchhhhCCCCaaaallllllllbbbbaaaacccckkkk() method with a callback
- derived from either ilWatchMethodCB or ilWatchFunctionCB to monitor a
- class derived from ilWatchedObject. The callback method or function will
- have the prototype:
-
- func(UserArgType userArg, ilWatchArg* watchArg)
-
-
- To define and use a completion callback to a member function,
- wwwwaaaattttcccchhhhNNNNoooottttiiiiffffyyyy(), of class Bar you might do something like:
-
- ...
- ilStatus Bar::watchNotify(Foo*, ilWatchArg*) { ... }
- ...
- typedef ilWatchMethodCB<Bar,Foo*> UserWatchCallback;
-
- Bar bar;
- Foo foo;
- UserWatchCallback watchCb(&bar, Bar::watchNotify, &foo);
-
- watchedObject->addWatchCallback(&watchCb);
-
-
- Each time the watched object is altered it should call ddddooooWWWWaaaattttcccchhhhCCCCaaaallllllllbbbbaaaacccckkkkssss()
- to notify any listening objects.
-
- CCCCLLLLAAAASSSSSSSS MMMMEEEEMMMMBBBBEEEERRRR FFFFUUUUNNNNCCCCTTTTIIIIOOOONNNN SSSSUUUUMMMMMMMMAAAARRRRYYYY
- CCCCaaaallllllllbbbbaaaacccckkkk mmmmaaaannnnaaaaggggeeeemmmmeeeennnntttt
-
- void addWatchCallback(ilCallback* cb, int autoDelete=FALSE)
- ilStatus removeWatchCallback(ilCallback* cb)
- ilStatus doWatchCallbacks(ilWatchReason reason=ilWatchChanged) _p_r_o_t_e_c_t_e_d
-
-
- FFFFUUUUNNNNCCCCTTTTIIIIOOOONNNN DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNNSSSS
- aaaaddddddddWWWWaaaattttcccchhhhCCCCaaaallllllllbbbbaaaacccckkkk(((())))
-
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- iiiillllWWWWaaaattttcccchhhheeeeddddOOOObbbbjjjjeeeecccctttt((((3333)))) IIIImmmmaaaaggggeeeeVVVViiiissssiiiioooonnnn LLLLiiiibbbbrrrraaaarrrryyyy CCCC++++++++ RRRReeeeffffeeeerrrreeeennnncccceeee MMMMaaaannnnuuuuaaaallll
-
-
-
- void addWatchCallback(ilCallback* cb, int autoDelete=FALSE)
-
-
- This method adds the callback, _c_b, to the list of objects to be
- notifed when this object is changed. If _a_u_t_o_D_e_l_e_t_e is TRUE, then
- the callback will be deleted when this object is destroyed.
-
- ddddooooWWWWaaaattttcccchhhhCCCCaaaallllllllbbbbaaaacccckkkkssss(((())))
-
- ilStatus doWatchCallbacks(ilWatchReason reason=ilWatchChanged) _p_r_o_t_e_c_t_e_d
-
-
- This method should be called by a derived class each time this
- object is altered to notify any listening objects. Possible values
- of _r_e_a_s_o_n are:
-
- _i_l_W_a_t_c_h_C_h_a_n_g_e_d indicates that this object has been altered in some
- way.
-
- _i_l_W_a_t_c_h_D_e_l_e_t_e_d indicates that this object has been deleted.
-
- rrrreeeemmmmoooovvvveeeeWWWWaaaattttcccchhhhCCCCaaaallllllllbbbbaaaacccckkkk(((())))
-
- ilStatus removeWatchCallback(ilCallback* cb)
-
-
- The method remvoed a callback, _c_b, that was previously added with
- aaaaddddddddWWWWaaaattttcccchhhhCCCCaaaallllllllbbbbaaaacccckkkk()
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- ilTiePointList, ilKernel
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-